<?php

namespace think\wework\Abstracts;

use GuzzleHttp\Client;

abstract class WeworkApi
{
    protected string $corpId;
    protected string $corpSecret;
    protected string $agentId;
    protected string $agentSecret;
    protected Client $httpClient;

    protected string $ticket;
    protected string $jsApiTicket;

    protected string $token;
    protected string $aesKey;

    public function __construct()
    {
        $options = config('wework');

        $this->corpId = $options['corpId'];
        $this->corpSecret = $options['corpSecret'];

        $this->agentId = $options['agentId'];
        $this->agentSecret = $options['agentSecret'];

        $this->token = $options['token'];
        $this->aesKey = $options['aesKey'];
    }
}